# coding: utf-8

import sys, os
import txmongo

from handler import *


settings = dict(
            app_name="ide",
            site_name="ide.fm",
            site_url = "http://www.ide.fm",
            version = "0.1.0707",
            login_url="/signin",
            xheaders = True,
            
            cookie_secret="X1AsPSKXRZO3hrSBYX2Abq4XFZpoIU/OnKP9wYQws7E=",
            recaptcha_pvk = "6Leuy8ESAAAAAA8DH1agK9O1aGTZbAiSV8AkM5ED",
            recaptcha_puk = "6Leuy8ESAAAAAC5kkdn25c53cQVG7eaGNMZ7Qa0s",
            
            template_path=os.path.join(os.path.dirname(__file__), "templates"),
            static_path=os.path.join(os.path.dirname(__file__), "static"),
            
            xsrf_cookies=True,
            mongo=txmongo.lazyMongoConnectionPool(),
            
            front_topic_number = 20,
            topic_number = 20,
            reply_number = 40,
            product_number = 20,
            user_number = 15,
            
            invite_limit = 5,
            
            pager = '~2~ <span class="fade">(第 $page 页, 共 $page_count 页)</span>',
            ui_modules= {
                        
                         },
        )